<?php
    /**
    * For mobile
    * Show map
    */
    
  if (!defined('EXPONENT')) exit('');
  $conf = $db->selectObject('contactmodule_config',"location_data='".serialize($loc)."'");
  if (!isset($conf->id))
  {
      exponent_http_error(404);
  }
  else
  {
      $template = new template('contactmodule','_mobile_showmap',$loc);
      $template->assign('conf',$conf);
      $template->register_permissions(array('administrate','configure'),$loc);
       
      $template->output();  
      exponent_sessions_set("AB_THEME_TOP_CONTAINER_SRC","top_contact".LANG);
  }
    
?>
